<style include="cr-icons cr-hidden-style">
  #main {
    position: relative;
    width: 200px;
  }

  #clear {
    --cr-icon-button-size: 28px;
    position: absolute;
    right: 2px;
  }

  #input {
    --cr-input-readonly-opacity: 1;
  }

  :host-context([dir='rtl']) #clear {
    left: -2px;
    right: inherit;
  }

</style>
<div id="main">
    <cr-input id="input" readonly="[[readonly_]]"
      placeholder="[[computePlaceholder_(readonly_)]]"
      invalid="[[getIsInvalid_(error_)]]"
      error-message="[[getErrorString_(error_,
          '$i18nPolymer{shortcutIncludeStartModifier}',
          '$i18nPolymer{shortcutTooManyModifiers}',
          '$i18nPolymer{shortcutNeedCharacter}')]]"
      value="[[computeText_(shortcut)]]">
    <cr-icon-button id="edit" aria-label="$i18nPolymer{editShortcut}"
        slot="suffix" class="icon-edit no-overlap"
        on-click="onEditClick_"></cr-icon-button>
  </cr-input>
</div>
